package com.wing.device.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.device.model.entity.MaintenanceExecute;
import com.wing.device.model.response.MaintenanceExecuteVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @version 1.1.0
 * @Author hz
 * @Date 2024-08-22 11:07
 **/
@Mapper
public interface MaintenanceExecuteDao extends BaseMapper<MaintenanceExecute> {
    /**
     * 查询任务执行列表
     * @param pg
     * @param map
     * @return
     */
    List<MaintenanceExecuteVo> list4app(@Param("page") Page<MaintenanceExecuteVo> pg,@Param("map") Map map);

    /**
     * 查询我的执行记录
     * @param pg
     * @param map
     * @return
     */
    List<MaintenanceExecuteVo> list4app_my(@Param("page") Page<MaintenanceExecuteVo> pg,@Param("map") Map map);
}
